home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!topic.demon.co.uk
- From: Mark Paddock <mark@topic.demon.co.uk>
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: List Gadget?
- Date: Thu, 11 Jan 96 18:03:20 GMT
- Organization: Home
- Message-ID: <9601111803.AA000pi@topic.demon.co.uk>
- References: <4cr443$6ce@roadkill.scms.rgu.ac.uk> <9601082252.AA000pd@topic.demon.co.uk> <4d2jog$gd6@roadkill.scms.rgu.ac.uk>
- X-NNTP-Posting-Host: topic.demon.co.uk
- X-Newsreader: TIN [version 1.2 PL3]
- X-Mail2News-Path: relay-4.mail.demon.net!post.demon.co.uk!topic.demon.co.uk
-
- Lee Kindness (cs2lk@scms.rgu.ac.uk) wrote:
- : Mark Paddock (mark@topic.demon.co.uk) wrote:
- : : Lee Kindness (cs2lk@scms.rgu.ac.uk) wrote:
- : : : I am looking for a listview type gadget, either source
- : : : BOOPSI gadget or part of a library.
- : : : I would like the following features:
- : : : Multi-select
- : : You can use a GadTools Listview with GTLV_CallBack.
-
- : [ cut ]
-
- : Thanks but one major problem is that this would force
- : the application to be 3.0+ only and it does not support
- : multi-select.
-
- It is 3.0+ only but it *does* support multi select.
-
- The selection held by Gadtools is ignored and the current
- selections are handled internally. The significant code is...
-
- if (!FileName->Selected) {
- SetABPenDrMd(msg->lvdm_RastPort,msg->lvdm_DrawInfo->dri_Pens[TEXTPEN],
- msg->lvdm_DrawInfo->dri_Pens[BACKGROUNDPEN],JAM2);
- }
- else {
- SetABPenDrMd(msg->lvdm_RastPort,msg->lvdm_DrawInfo->dri_Pens[FILLTEXTPEN],
- msg->lvdm_DrawInfo->dri_Pens[FILLPEN],JAM2);
- }
-
- and the other checks on ->Selected in the callback.
-
- and
-
- if (MyNamep[MPIndexMsg.Code]->Selected) {
- MyNamep[MPIndexMsg.Code]->Selected = FALSE;
- }
- else {
- MyNamep[MPIndexMsg.Code]->Selected = TRUE;
- }
-
- in the message handling routine.
-